package com.material.supplier.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.material.common.annotation.Excel;
import com.material.common.core.domain.BaseEntity;

/**
 * 供应商预约送料对象 supplier_reservation
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public class SupplierReservation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 工厂id */
    @Excel(name = "工厂id")
    private Long factoryId;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Long supplierId;

    /** 燃料品名id */
    @Excel(name = "燃料品名id")
    private Long fuelId;

    /** 预计送料的车辆id */
    @Excel(name = "预计送料的车辆id")
    private Long carId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 预约送达时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约送达时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reservationTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date reservationDate;

    /** 状态：0.待送料，1.已送料 */
    @Excel(name = "状态：0.待送料，1.已送料")
    private Integer state;

    private String remark;

    private Double quantity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setFuelId(Long fuelId) 
    {
        this.fuelId = fuelId;
    }

    public Long getFuelId() 
    {
        return fuelId;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setReservationTime(Date reservationTime) 
    {
        this.reservationTime = reservationTime;
    }

    public Date getReservationTime() 
    {
        return reservationTime;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Double getQuantity() {
        return quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Date getReservationDate() {
        return reservationDate;
    }

    public void setReservationDate(Date reservationDate) {
        this.reservationDate = reservationDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factoryId", getFactoryId())
            .append("supplierId", getSupplierId())
            .append("fuelId", getFuelId())
            .append("carId", getCarId())
            .append("userId", getUserId())
            .append("reservationTime", getReservationTime())
            .append("state", getState())
            .append("createTime", getCreateTime())
            .toString();
    }
}
